package com.tiger.sso;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.jasig.cas.client.validation.Assertion;
import org.springframework.stereotype.Component;

@Component("ssoLoginListener")
public class SSOLoginListenerImpl implements SSOLoginListener {
	public void loginSucc(final HttpServletRequest request, final HttpServletResponse response, final Assertion assertion) {
		System.out.println("============================初始化权限");
		System.out.println(assertion.getPrincipal().getName());
		System.out.println(assertion.getPrincipal().getAttributes().get("userId"));
		System.out.println(assertion.getAttributes().get("userId"));
	}
}
